package com.designpattern.demo.design2;

import android.util.Log;

import com.designpattern.demo.R;
import com.designpattern.demo.ui.BaseActivity;

public class StrategyActivity extends BaseActivity {

    @Override
    protected int getContentResId() {
        return R.layout.activity_strategy;
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {
        String type = "打8折";
        CashContext cashContext = new CashContext(type);
        double result = cashContext.getResult(1000);
        Log.d(getClass().getSimpleName(), type + "后总金额：" + result);
    }
}
